import { createRouter, createWebHistory } from 'vue-router';
import HomePage from '@/views/HomePage.vue';
import RestaurantDetailPage from '@/views/RestaurantDetailPage.vue';
import UserProfilePage from '@/views/UserProfilePage.vue';

const routes = [
    { path: '/', name: 'Home', component: HomePage },  // 首页
    { path: '/restaurant', name: 'RestaurantInfo', component: RestaurantDetailPage },  // 餐馆信息页
    { path: '/user-profile', name: 'UserProfile', component: UserProfilePage },  // 个人资料页
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;
